package com.best4cloud.auth.service;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;

public interface BestUserDetailsService extends UserDetailsService {

    /**
     * 根据手机号码查询用户
     *
     * @param mobile 手机号
     * @return 用户信息
     */
    UserDetails loadUserByMobile(String mobile);

    /**
     * 根据微信UnionId查询用户
     *
     * @param unionId 微信UnionId
     * @return 用户信息
     */
    UserDetails loadUserByUnionId(String unionId);
}
